const obj ={
    name :"why",
    age:18
}

const objProxy = new Proxy(obj,{
    get:function(target,key,receiver){
        console.log("get--------")
        return Reflect.get(target,key)
    },
    set:function(target,key,newVale,receiver){
        console.log("set--------")
      const result = Reflect.set(target,key,newVale)
      if(result){

      }else{
          
      }
    }
})

objProxy.name = "kobe"
console.log(objProxy.name)